//
//  LYSelectedClassedCell.m
//  artist
//
//  Created by laotang on 16/4/18.
//  Copyright © 2016年 viviyoo. All rights reserved.
//

#import "LYSelectedClassedCell.h"

@interface LYSelectedClassedCell()
@property (nonatomic, strong) UILabel *classesTitleLabel;
@end


@implementation LYSelectedClassedCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        self.classesTitleLabel = [[UILabel alloc] initWithFrame:self.bounds];
        self.classesTitleLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.classesTitleLabel];
    }
    
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.classesTitleLabel.frame = self.bounds;
}
- (void)setTitle:(NSString *)title{
    self.classesTitleLabel.text = title;
}

@end
